package com.example.qxfw.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.time.LocalDateTime;
import java.util.List;

import com.example.qxfw.common.entity.zy.TourFcst;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/************************************
*
* @author : HuangDeYin Jolly
* @since : JDK 11
* @Date : 2023/7/10  星期一   11:43
* @description : 此类用来
***************************************/
@Mapper
public interface TourFcstMapperXml extends BaseMapper<TourFcst> {
    /**
     * delete by primary key
     * @param stationid primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(@Param("stationid") String stationid, @Param("datechar") LocalDateTime datechar, @Param("timechar") String timechar, @Param("ntimes") Integer ntimes, @Param("forecasttype") Integer forecasttype);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(TourFcst record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(TourFcst record);

    /**
     * select by primary key
     * @param stationid primary key
     * @return object by primary key
     */
    TourFcst selectByPrimaryKey(@Param("stationid") String stationid, @Param("datechar") LocalDateTime datechar, @Param("timechar") String timechar, @Param("ntimes") Integer ntimes, @Param("forecasttype") Integer forecasttype);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(TourFcst record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(TourFcst record);

    List<TourFcst> getStationIDAndTime(@Param("stationId") String stationId, @Param("timeChar") String timeChar);
}